#define _CRT_SECURE_NO_WARNINGS  1

#include <iostream>
#include <string>
#include <ctype.h>
using namespace std;
int main()
{
	string s;
	cin >> s;
	int count = 0;
	if (s.length() <= 4)
		count += 5;
	else if (s.length() >= 8)
		count += 25;
	else
		count += 10;
	int flag1 = 0;
	int flag2 = 0;
	for (int i = 0; i < s.length(); i++)
	{
		if (islower(s[i]))
			flag1++;
		if (isupper(s[i]))
			flag2++;
	}
	if (flag2 == 0 && flag1 == 0)
		count += 0;
	else if (flag1 != 0 && flag2 != 0)
		count += 20;
	else
		count += 10;
	int flag3 = 0;
	for (int i = 0; i < s.length(); i++)
	{
		if (isdigit(s[i]))
			flag3++;
	}
	if (flag3 == 0)
		count += 0;
	else if (flag3 == 1)
		count += 10;
	else
		count += 20;
	int flag4 = 0;
	for (int i = 0; i < s.length(); i++)
	{
		if (!isdigit(s[i]) && !isalpha(s[i]))
			flag4++;
	}
	if (flag4 == 0)
		count += 0;
	else if (flag4 == 1)
		count += 10;
	else
		count += 25;
	if (flag1 && flag2 && flag3 && flag4)
		count += 5;
	else if ((flag1 || flag2) && flag3 && flag4)
		count += 3;
	else if ((flag1 || flag2) && flag3)
		count += 2;
	if (count >= 90)
		cout << "VERY_SECURE" << endl;
	else if (count < 90 && count >= 80)
		cout << "SECURE" << endl;
	if (count < 80 && count >= 70)
		cout << "VERY_STRONG" << endl;
	if (count < 70 && count >= 60)
		cout << "STRONG" << endl;
	if (count < 60 && count >= 50)
		cout << "AVERAGE" << endl;
	if (count < 50 && count >= 25)
		cout << "WEAK" << endl;
	if (count < 25 && count >= 0)
		cout << "VERY_WEAK" << endl;
}